/*
 * Fichier: PresentationController.java
 * Crée le: 15 septembre 2007.
 * Modifié: 14 février 2009.
 * Auteurs: Sébastien ESTIENNE.
 * SiteWeb: http://www.prog-info.org/
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

package javaexos.controller;



import javaexos.view.PresentationView;
import javaexos.view.View;
import javaexos.view.ViewFactory;



/**
 * <p>Controller pour la vue d'une présentation.</p>
 * @author Sébastien ESTIENNE.
 */
public class PresentationController
{
   /** Fabrique de vues. */
   private ViewFactory factory;

   /** Vue pour un chapitre. */
   private PresentationView presentationView;


   /**
    * <p>Constructeur.</p>
    * @param factory La fabrique de vues.
    */
   public PresentationController(ViewFactory factory)
   {
      // Initialisation.
      this.factory = factory;

      // Création de la vue.
      this.presentationView = this.factory.createPresentationView(this);
   }


   /**
    * <p>Retourne la vue de ce contrôleur.</p>
    * @return Renvoie la vue de ce contrôleur.
    */
   public View getView()
   {
      return this.presentationView;
   }
}
